package com.training.io.reader;

import java.awt.image.BufferedImage;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.Reader;

public class ReaderDemo {
	public static void main(String[] args) throws Exception {
		BufferedReader in = new BufferedReader(
				new FileReader("E:\\JavaWork\\java-io\\src\\com\\training\\io\\stream\\StreamDemo.java"));
		
//		int n = 0;
//		while((n=in.read())!=-1) {
//			System.out.print((char)n);
//		}
		String line = null;
		
		while((line = in.readLine())!=null) {
			System.out.println(line);
		}
		in.close();
	}

}
